<%@page import="com.demoweb.model.dto.Score"%>
<%@page import="com.demoweb.model.dto.UploadFile"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.demoweb.model.dao.UploadFileDao"%>
<%@page import="com.demoweb.model.dao.daesunScoreDao"%>

<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>

<html>
<head>
<title>ranking</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="/demoweb/styles/styleimg.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">

</script>
</head>
<body>

	<div id="pageContainer">
		<%	pageContext.include("/WEB-INF/views/include/tetrisheader2.jsp");%>
		</div>
		<div id="content">
  <div id="sidebar">
     <% pageContext.include("/WEB-INF/views/include/fortresslogin.jsp"); %>
	<% pageContext.include("/WEB-INF/views/include/fortressrecentupdates.jsp"); %>
	</div>
  </div>
  <h2><font color="red"; font-family="Arial">Tetris Top10 List</h2></font>
		<div style="padding-top:25px;text-align:center">
			<form action = rankinglist.action></form>
			<% ArrayList<Score> scores2= (ArrayList<Score>)request.getAttribute("ranking2");%>		
	<div id="table">
			<table border="0" style="width:500px" align="center">
				<tr style="background-color: #FFD9EC; height:40px">
					<th style="width:50px">Ranking</th>
					<th style="width:400px">ID</th>
					<th style="width:150px;text-align:center">Score</th>
				</tr>
				
			
				<% for (int i = 0;i<scores2.size();i++) { %>
				<tr style="height:30px">
				<% if(i < 10) { %>
					<td>No.<%= i+1 %> </td>
					<td style="text-align:center;padding-left:10px">
							<%= scores2.get(i).getMemberId() %>
							
					</td>
					<td><%= scores2.get(i).getScore() %> <% } %></td>
					
				</tr>
				
				<% } %>
	
			</table>
			</div>
			<br /><br /><br /><br />
		</div>		
	<div id="footer">
  <p id="legal">Copyright &copy; 2007 Red Avenue. All Rights Reserved. Designed by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.</p>
  <p id="links"><a href="http://www.free-css.com/">Home</a> | <a href="http://www.free-css.com/">Terms of Use</a></p>
</div>
</body>
</html>